/**
 * Created by IntelliJ IDEA.
 * User: akolonitsky
 * Date: 1/21/12
 * Time: 3:10 PM
 * To change this template use File | Settings | File Templates.
 */
package controller
{
    import model.LogProxy;
    import model.UserProxy;

    import org.kolonitsky.alexey.debug.DebugWrapper;

    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    public class CollectUserStatisticCommand extends SimpleCommand
    {
        override public function execute(notification:INotification):void
        {
            super.execute(notification);

            DebugWrapper.trace("INFO: CMD > CollectUserStatisticCommand. ");

            var logProxy:LogProxy = facade.retrieveProxy(LogProxy.NAME) as LogProxy;
            var userProxy:UserProxy = facade.retrieveProxy(UserProxy.NAME) as UserProxy;
            logProxy.fillUserStatisticInfo(userProxy.user);
        }
    }
}
